import { ConfigProvider } from "antd";
import ReactDOM from "react-dom/client";
import "@/global.less";
import { BrowserRouter } from "react-router-dom";
import App from "./App";
import zh_cn from "antd/locale/zh_CN";
import { Provider } from "react-redux";
import store from "./store";

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
  <ConfigProvider locale={zh_cn}>
    <BrowserRouter>
      <Provider store={store}>
        <App />
      </Provider>
    </BrowserRouter>
  </ConfigProvider>
);
